package com.mud.dnd.domain.model;

import com.mud.dnd.domain.model.GameItem;

import java.io.Serializable;
import java.util.List;

import javax.persistence.*;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * Entity implementation class for Entity: Action
 *
 */
@Entity

public class Action extends GameItem implements Serializable {

	
	private static final long serialVersionUID = 1L;
	
	private List<CardAction> cards;


	public Action() {
		super();
	}
	
	
	
	public Action(String name, String description, String pictureURL, User author )
	{
		super();
		this.name = name;
		this.description = description;
		this.pictureURL = pictureURL;
		this.author = author;
	}




	
	@OneToMany(mappedBy="action")
	public List<CardAction> getCards() {
		return cards;
	}

	public void setCards(List<CardAction> cards) {
		this.cards = cards;
	}

	
	
	
	
	
   
}
